package org.jeecg.modules.santu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 群组表
 * @Author: jeecg-boot
 * @Date:   2024-11-14
 * @Version: V1.0
 */
@Data
@TableName("tb_group")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tb_group对象", description="群组表")
public class TbGroup implements Serializable {
    private static final long serialVersionUID = 1L;

    //0启用
    public static final Integer ENABLE = 0;
    //1禁用
    public static final Integer FORBIDDEN = 1;
    //拼多多	0
    public static final Integer PINDUODUO = 0;
    //淘宝	    1
    public static final Integer TAOBAO = 1;
    //柜子	    3
    public static final Integer CELL = 3;
    //两者都	2
    public static final Integer ALL = 2;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**类型*/
	@Excel(name = "类型", width = 15, dicCode = "group_type")
	@Dict(dicCode = "group_type")
    @ApiModelProperty(value = "类型")
    private Integer type;
	/**描述*/
	@Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    private String descs;
	/**是否启用*/
	@Excel(name = "是否启用", width = 15, dicCode = "group_enable")
	@Dict(dicCode = "group_enable")
    @ApiModelProperty(value = "是否启用")
    private Integer enable;
	/**群组id*/
	@Excel(name = "群组id", width = 15)
    @ApiModelProperty(value = "群组id")
    private String roomid;
}
